IF FileDir~='/' & RIGHT(FileDir,2)~='//' & RIGHT(FileDir,1)='/' THEN FileDir=LEFT(FileDir,LENGTH(FileDir)-1)
IF OPEN(File,FullFileName,R) THEN DO
Type=READCH(File,6)
IF Type~='GIF87a' & Type~='GIF89a' THEN DO
ADPRO_TO_FRONT
OKAY1 'Error During Load'||NL||,
'Not A GIF File'
EXIT
END
Comment=''
IF Type='GIF89a' THEN DO
SET_ADPRO_PUBLIC
ADProScrn=adpro_result
SET_ADPRO_MODE
ScreenWidth=WORD(ADPRO_RESULT,2)
ScreenHeight=WORD(ADPRO_RESULT,3)
IF OPEN(CON,'con:'||TRUNC((ScreenWidth-SrchOutWinX)/2)||'/'||TRUNC((ScreenHeight-SrchOutWinY)/2)||'/'||SrchOutWinX||'/'||SrchOutWinY||'/ADPro GIF_+_Comment Loader/NOSIZE/SCREEN '||ADProScrn,'W') THEN DO
IF OPEN(CON,'con:'||TRUNC((ScreenWidth-ComOutWinX)/2)||'/'||TRUNC((ScreenHeight-ComOutWinY)/2)||'/'||ComOutWinX||'/'||ComOutWinY||'/ADPro GIF_+_Comment Loader/CLOSE/WAIT/SCREEN '||ADProScrn,'W') THEN DO